package com.hunliji.monitor.manager.api;

import com.lark.project.service.view.builder.WorkItemListResp;
import com.lark.project.service.workitem.model.WorkItemInfo;

import java.util.List;

public interface FeishuInterceptionManager {

    /**
     * 获取accessToken
     */
    String getAccessToken();

    /**
     * 根据工作项名称和类型查询工作项
     */
    Long getWorkItemId(String accessToken, String projectKey, List<String> workItemTypeKeys, String workItemName);

    /**
     * 根据id查询工作项详情
     */
    WorkItemInfo getWorkItemInfo(String accessToken, Long workItemId, String projectKey, String workItemTypeKey);

    /**
     * 视图内前200个工作项
     */
    List<Long>  viewWorkItemList(String accessToken, String projectKey, String viewId);
}
